/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Zachary
 */
/*
 * Workout session is a container for workout session variables.
 */
public class workout_session {
    public double session_time;
    public double distance_run, distance_climbed;
    public double heartrate_average, heartrate_peak, heartrate_current;
    public double calories_burned, current_weight;
    public workout_session(){
        session_time = 0;
        distance_run = 0; distance_climbed = 0;
        heartrate_average = 0; heartrate_peak = 0;
        calories_burned = 0; current_weight = 0;
    }
    @Override
    public String toString(){
        String temp = "";
        java.text.NumberFormat fmt = java.text.NumberFormat.getInstance();
        fmt.setMinimumFractionDigits(4);            
        temp += "Session Time: " + fmt.format(session_time / 60)+ " Minutes\n";
        temp += "Distance Run: " + fmt.format(distance_run)+ " Miles\n";
        temp += "Distance Climbed: " + fmt.format(distance_climbed)+ " Miles\n";
        temp += "Average Heart Rate: " + fmt.format(heartrate_average)+ " BPM\n";
        temp += "Peak Heart Rate: " + fmt.format(heartrate_peak)+ " BPM\n";
        temp += "Calories Burned: " + fmt.format(calories_burned)+ "\n";
        temp += "Weight: " + fmt.format(current_weight)+ " LBS\n";
        return temp;
    }
}
